package icu.groot.alan.hotel.entity.req;

import icu.groot.alan.hotel.util.BizException;
import icu.groot.alan.hotel.util.ResultCodeEnum;

public class OrderPurchaseRo {

    /**
     * 联系电话
     */
    private String informPhone;

    /**
     * 定的那种房间
     */
    private String roomType;

    /**
     * 入住人真实姓名
     */
    private String checkinName;

    /**
     * 入住人身份证
     */
    private String checkinIdentity;

    /**
     * 用户选择的入住开始时间
     */
    private String checkinStartTime;

    /**
     * 用户选择的入住结束时间
     */
    private String checkinEndTime;

    public String getInformPhone() {
        return informPhone;
    }

    public void setInformPhone(String informPhone) {
        this.informPhone = informPhone;
    }

    public String getRoomType() {
        return roomType;
    }

    public void setRoomType(String roomType) {
        this.roomType = roomType;
    }

    public String getCheckinName() {
        return checkinName;
    }

    public void setCheckinName(String checkinName) {
        this.checkinName = checkinName;
    }

    public String getCheckinIdentity() {
        return checkinIdentity;
    }

    public void setCheckinIdentity(String checkinIdentity) {
        this.checkinIdentity = checkinIdentity;
    }

    public String getCheckinStartTime() {
        return checkinStartTime;
    }

    public void setCheckinStartTime(String checkinStartTime) {
        this.checkinStartTime = checkinStartTime;
    }

    public String getCheckinEndTime() {
        return checkinEndTime;
    }

    public void setCheckinEndTime(String checkinEndTime) {
        this.checkinEndTime = checkinEndTime;
    }
    private void isStringNull(String val, String remind){
        if (val == null || val.equals("")){
            throw new BizException(ResultCodeEnum.FAILED.setMessage(remind));
        }
    }
}
